class UA{
  getUseragent(){
    var version = "";
    var model = "";
    var system = "";
    var language = "";
    var SDKVersion = "";
    wx.getSystemInfo({
      success: function (res) {
        version = res.version;
        model = res.model;
        system = res.system;
        language = res.language;
        SDKVersion = res.SDKVersion;
      }
    })
    var value = wx.getStorageSync('token');
    if (!value){
      value=0;
    }

      var c = "hwgwxapp://2.0.7(" + model + ";" + system + ";" + language + ";" + "ID:3-" + value + "-" + SDKVersion + "-wxapp)";

    
    return c;
  }
}

export {UA}